#include "stdafx.h"
#include "CppUnitTest.h"
#include "MySolver/MySolver.h"
#include "SnakeLib/Board.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace snake;

namespace MySolverTests
{
	TEST_CLASS(headPositionTest)
	{
	public:
		
		TEST_METHOD(HeadInPositionOneTwo)
			{
			// Arrange
			std::pair<int, int> expected = std::make_pair(1, 2);
			Board board(4,4);
			board.SetCell(1, 2, snake::CELL_SNAKE_HEAD_DOWN);
			//Act
			auto actual = MySolver::headPosition(board);
			//Assert
			Assert::AreEqual(expected.first, actual.first);
			Assert::AreEqual(expected.second, actual.second);

			}

	};
}